Reorganise gitlab-ci.yml a bit
authorFelix Krull <f_krull@gmx.de>
Sat, 20 Oct 2018 10:24:10 +0000 (12:24 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:53 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml

index bef97f752b01ce6e44672a8cde2589a83c2f5316..9222ef76816c5043bb9f23aedc23c802321d9634 100644 (file)
@@ -10,40 +10,49 @@ before_script:
 
 stages:
 - build
-- docs
 - publish
 
+# libostree-sys
 libostree-sys:
   stage: build
   script:
-  - cargo build --verbose --manifest-path libostree-sys/Cargo.toml
   - cargo test --verbose --manifest-path libostree-sys/Cargo.toml
 
-libostree:
-  stage: build
-  script:
-  - cargo build --verbose
-  - cargo test --verbose
-
 libostree-sys_nightly:
   stage: build
   image: rustlang/rust:nightly
   script:
-  - cargo build --verbose --manifest-path libostree-sys/Cargo.toml
   - cargo test --verbose --manifest-path libostree-sys/Cargo.toml
   allow_failure: true
 
+publish_libostree-sys:
+  stage: publish
+  script:
+  - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
+  when: manual
+
+# libostree
+libostree:
+  stage: build
+  script:
+  - cargo test --verbose
+
 libostree_nightly:
   stage: build
   image: rustlang/rust:nightly
   script:
-  - cargo build --verbose
   - cargo test --verbose
   allow_failure: true
 
+publish_libostree:
+  stage: publish
+  script:
+  - cargo publish --verbose --token $CRATES_IO_TOKEN
+  when: manual
+
 # docs
 docs:
-  stage: docs
+  stage: build
   script:
   - make merge-lgpl-docs
   - cargo doc --verbose --features dox
@@ -51,7 +60,6 @@ docs:
     paths:
     - target/doc
 
-# publish
 pages:
   stage: publish
   script:
@@ -61,15 +69,3 @@ pages:
     - public
   only:
   - master
-
-publish_libostree-sys:
-  stage: publish
-  script:
-  - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
-  when: manual
-
-publish_libostree:
-  stage: publish
-  script:
-  - cargo publish --verbose --token $CRATES_IO_TOKEN
-  when: manual